<!DOCTYPE html>
<html ng-app="myModel">
	<head lang="en">
		<meta charset="UTF-8">
		<title>测试02</title>				
	</head>
	<link rel="stylesheet" type="text/css" href="../css/index.css"/>
	<body>	
		<!--购物车功能-->
		<div ng-controller="myCtrl" class="myCtrl02">
			<p><button ng-click="add()">添加</button></p>
			<table border="0" cellspacing="" cellpadding="">
				<tr>
					<th>单价</th>
					<th>数量</th>
					<th>小计</th>
					<th>删除</th>
				</tr>
				<tr ng-repeat="obj in car">
					<td>{{obj.price}}</td>
					<td>{{obj.count}}</td>
					<td>{{obj.price*obj.count}}</td>
					<td><button ng-click="delete()">删除</button></td>
				</tr>
			</table>			
		</div>
		
		<!--自定义指令-->
		<div ng-controller="tsCtrl">
			<p ts-hellow></p>
			<p class="ts-hellow"></p>
			<ts-hellow></ts-hellow>			
		</div>
		
		<!--自定义传参-->
		<div>
			
			
		</div>

	</body>
	<script src="../AngularJS-1.4.1/js/angular.js"></script>	
	<script src="../js/data02.js"></script>
</html>











